package com.mars.basic.config;

import com.mars.common.utils.MarsConstant;
import feign.RequestInterceptor;
import feign.RequestTemplate;
import org.springframework.context.annotation.Configuration;

@Configuration
public class FeignConf implements RequestInterceptor {

    @Override
    public void apply(RequestTemplate template) {
    template.header(MarsConstant.GATEWAY_KEY,MarsConstant.FEIGN_KEY);
    }
}
